package p2

import (
	"fmt"
)

/**
 * @Description
 * @Author huran
 * @Date
 * @Param
 * @return
 **/
type pp1 interface {
	HelloFromP1()
}
type P2 struct {
	PP1 pp1
}

func New(pp1 pp1) *P2 {
	return &P2{PP1: pp1}
}

func (p *P2) HelloP2() {
	fmt.Println("hello from package p2")
}
func (p *P2) HelloP1Side() {
	p.PP1.HelloFromP1()
}
